package com.cloudcross.ssp.service;

import com.cloudcross.ssp.base.service.IGenericService;
import com.cloudcross.ssp.model.DeliverAnalysis;
import com.cloudcross.ssp.web.multiplatform.AdGroupBasicData;
import com.cloudcross.ssp.web.multiplatform.AdGroupOrderVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 报表服务
 *
 * @author wuqiang.du
 */
public interface IAdReportService extends IGenericService<DeliverAnalysis> {

    //首页顶部统计数据查询
    Map<String, Object> findCompare(Map<String, Object> paramMap);

    /**
     * 根据广告主id和时间查询它的总的曝光数和点击数
     */
    HashMap<String, Object> findTotalImpressionAndClickByAdvertiserId(Map<String, Object> paramMap);

    /**
     * 根据代理商id查询该代理商下的所有广告主的曝光数和点击数的总和
     */
    HashMap<String, Object> findTotalImpressionAndClickByAgentId(Map<String, Object> paramMap);

    List<AdGroupBasicData> queryAppBasicData(String yesterday);

    List<AdGroupOrderVo> queryGroupOrderParam();

    List<AdGroupBasicData> queryPcBasicData(String yesterday);
}
